import { sceneManager } from './systems/sceneManager.js';
import { BootScene } from './scenes/BootScene.js';

const config = {
  type: Phaser.AUTO,
  width: 800,
  height: 600,
  parent: 'game-container',
  canvas: document.getElementById('gameCanvas'),
  physics: {
    default: 'arcade',
    arcade: {
      gravity: { y: 0 },
      debug: false
    }
  },
  scene: [BootScene]
};

const game = new Phaser.Game(config);

// 初始化场景管理器
sceneManager.addScene('boot', BootScene);
sceneManager.switchTo('boot');